package com.svs.generator.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.svs.framework.base.service.CrudService;
import com.svs.generator.domain.BizColumn;
import com.svs.generator.mapper.master.BizColumnDao;

/**
 * 业务字段 服务层实现
 * 
 * @author 杜建桥
 * @date 2019-01-31
 */
@Service
public class BizColumnService extends CrudService<BizColumnDao, BizColumn> {

	
	@Autowired
	private BizColumnDao bizColumnDao;
	
	
	public List<BizColumn> getListByTableName(String tableName) {
		BizColumn col = new BizColumn() ;
		col.setTableName(tableName);
		return selectAllList(col) ;
	}
	
	
	
	/**
	 * 删除数据
	 * @param tableNames
	 * @return
	 */
	public int deleteByTables(String[] tableNames) { 
		return bizColumnDao.deleteByTables(tableNames) ;
	}
	
}
